<html>
<head><meta charset="utf-8"><title>Profiling rustc memory usage · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Profiling.20rustc.20memory.20usage.html">Profiling rustc memory usage</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="234397414"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Profiling%20rustc%20memory%20usage/near/234397414" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> James Tucker <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Profiling.20rustc.20memory.20usage.html#234397414">(Apr 13 2021 at 20:44)</a>:</h4>
<p>Hello friends! I have a rust program in Fuchsias tools that is now taking &gt;=16gb of ram during compilation. I'd like to do some memory profiling to see where to focus efforts. I found a blog post about CPU profiling rustc, is there something similar for memory profiling?</p>



<a name="234406527"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Profiling%20rustc%20memory%20usage/near/234406527" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Profiling.20rustc.20memory.20usage.html#234406527">(Apr 13 2021 at 21:39)</a>:</h4>
<p>I've used heaptrack on rustdoc in the past, but it doesn't work with jemalloc enabled, which I think it is for nightly builds. So you'd have to build rustc from source</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>